
<%@ page import="intercampi.Aluno" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'aluno.label', default: 'Aluno')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="aluno.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alunoInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="aluno.eventos.label" default="Eventos" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${alunoInstance.eventos}" var="e">
                                    <li><g:link controller="evento" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="aluno.receberEmail.label" default="Receber Email" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${alunoInstance?.receberEmail}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="aluno.receberTelefonema.label" default="Receber Telefonema" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${alunoInstance?.receberTelefonema}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="aluno.temaInteresses.label" default="Tema Interesses" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${alunoInstance.temaInteresses}" var="t">
                                    <li><g:link controller="temaInteresse" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                        </tr>
                        
                        <tr><td></td></tr>
                    
                        <tr class="prop">
                            <td valign="top"><b><i>Dados Pessoais</i></b></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Nome</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.nome.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">CPF</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.cpf.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">RG</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.rg.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Orgao Expedidor</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.orgaoExpedidor.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Profissao</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.profissao.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Data de Nascimento</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.dataNascimento.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Data de Atualizacao</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.dataAtualizacao.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Telefone Residencial</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.telefone1.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Telefone Comercial</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.telefone2.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Celular</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.telefone3.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">E-mail 1</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.email1.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">E-mail 2</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.email2.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">E-mail 3</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.email3.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Skype</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.skype.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Unidade Intercampi</td>
                            <td valign="top" class="value"><g:link controller="pessoa" action="show" id="${alunoInstance?.pessoa?.id}">${alunoInstance?.pessoa?.unidadeIntercampi.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr><td></td></tr>
                    
                        <tr class="prop">
                            <td valign="top"><b><i>Endereco</i></b></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Rua</td>
                            <td valign="top" class="value"><g:link controller="endereco" action="show" id="${alunoInstance?.pessoa?.endereco?.id}">${alunoInstance?.pessoa?.endereco?.rua.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Numero</td>
                            <td valign="top" class="value"><g:link controller="endereco" action="show" id="${alunoInstance?.pessoa?.endereco?.id}">${alunoInstance?.pessoa?.endereco?.numero.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Complemento</td>
                            <td valign="top" class="value"><g:link controller="endereco" action="show" id="${alunoInstance?.pessoa?.endereco?.id}">${alunoInstance?.pessoa?.endereco?.complemento.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Bairro</td>
                            <td valign="top" class="value"><g:link controller="endereco" action="show" id="${alunoInstance?.pessoa?.endereco?.id}">${alunoInstance?.pessoa?.endereco?.bairro.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">CEP</td>
                            <td valign="top" class="value"><g:link controller="endereco" action="show" id="${alunoInstance?.pessoa?.endereco?.id}">${alunoInstance?.pessoa?.endereco?.cep.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Cidade</td>
                            <td valign="top" class="value"><g:link controller="endereco" action="show" id="${alunoInstance?.pessoa?.endereco?.id}">${alunoInstance?.pessoa?.endereco?.cidade.encodeAsHTML()}</g:link></td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top">Estado</td>
                            <td valign="top" class="value"><g:link controller="endereco" action="show" id="${alunoInstance?.pessoa?.endereco?.id}">${alunoInstance?.pessoa?.endereco?.cidade?.estado.encodeAsHTML()}</g:link></td>
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${alunoInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
